<html>
	<head>
		<link rel="stylesheet" type="text/css" href="tree.css" />
		<script type="text/javascript">
			function toggleElement (node, name, hide, is_parent)
			{
				if (node.nodeName == "BODY")
					return;
					
				toggleElement (node.parentNode, name, false, true);
				
				if (node.nodeName == "DIV")
				{
					if (node.oldHTML == undefined)
						node.oldHTML = node.innerHTML;
					
					if (is_parent)
						return;
					else if (hide)
						node.innerHTML = '<p class="value"><a onMouseOver="this.style.cursor=\'pointer\'" onMouseOut="this.style.cursor=\'\'" onClick="toggleElement (this.parentNode.parentNode, \'' + name + '\', false, false)">' + name + '</a></p>';
					else
						node.innerHTML = node.oldHTML;
				}
			}
		</script>
	</head>
	<body>
		<p class="title">Decision Tree: LEARNER</p>
		
		<div class="description">
			<p>Number of examples: EXAMPLE_COUNT</p>
			<p>Number of nodes: NODE_COUNT</p>
			<p>Depth: NODE_DEPTH</p>
		</div>

		NODE_HTML

		<!-- <div class="node">
			<p class="sensor">Desktop Sensor (Active)</p>
			
			<div class="node">
				<p class="value">Mail (com.apple.mail)</p>
				<p class="prediction">E-Mail</p>
				<p class="data">1 match</p>
			</div>

			<div class="node">
				<p class="value">NetNewsWire (com.ranchero.NetNewsWire)</p>
				<p class="prediction">Web Browsing</p>
				<p class="data">1 match</p>
			</div>

			<div class="node">
				<p class="value">Xcode (com.apple.Xcode)</p>
				<p class="prediction">Programming</p>
				<p class="data">2 matches</p>
			</div>

			<div class="node">
				<p class="value">iTunes (com.apple.iTunes)</p>
				<div class="node">
					<p class="sensor">USB Sensor :: iPhone (0x5ac 0x1290 0x1)</p>

					<div class="node">
						<p class="value">true</p>
						<p class="prediction">Media Management</p>
						<p class="data">4 matches</p>
					</div>

					<div class="node">
						<p class="value">false</p>
						<p class="prediction">Away</p>
						<p class="data">1 match</p>
					</div>
				</div>
			</div>
		</div> -->
	</body>
</html>